package com.example.siyun.service.impl.orderserviceImpl;

import com.example.siyun.mapper.ordermapper.CommodityMapper;
import com.example.siyun.pojo.SyUserOrder;
import com.example.siyun.service.orderservice.CommodityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/*
 * 商品订单列表
 *@author：王浩宇
 *@Date: 2022-10-12
 * */
@Service
public class CommodityServiceImpl implements CommodityService {

    @Autowired
    private CommodityMapper commodityMapper;

    @Override
    public List<SyUserOrder> Get() {
        return commodityMapper.Get();
    }

    @Override
    public List<SyUserOrder> Select(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.Select(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public List<SyUserOrder> getPayment() {
        return commodityMapper.getPayment();
    }

    @Override
    public List<SyUserOrder> selectPayment(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.selectPayment(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public List<SyUserOrder> getConsignment() {
        return commodityMapper.getConsignment();
    }

    @Override
    public List<SyUserOrder> selectConsignment(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.selectConsignment(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public List<SyUserOrder> getShipped() {
        return commodityMapper.getShipped();
    }

    @Override
    public List<SyUserOrder> selectShipped(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.selectShipped(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public List<SyUserOrder> getSigned() {
        return commodityMapper.getSigned();
    }

    @Override
    public List<SyUserOrder> selectSigned(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.selectSigned(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public List<SyUserOrder> getCancel() {
        return commodityMapper.getCancel();
    }

    @Override
    public List<SyUserOrder> selectCancel(String orderSource, String orderStatus, String orderPaymentChannel) {
        return commodityMapper.selectCancel(orderSource,orderStatus,orderPaymentChannel);
    }

    @Override
    public void Update(Integer id) {
        commodityMapper.Update(id);
    }

    @Override
    public void Address(Integer id, String address) {
        commodityMapper.Address(id,address);
    }

    @Override
    public int Number() {
        return commodityMapper.Number();
    }

    @Override
    public int numberPayment() {
        return commodityMapper.numberPayment();
    }

    @Override
    public int numberConsignment() {
        return commodityMapper.numberConsignment();
    }

    @Override
    public int numberShipped() {
        return commodityMapper.numberShipped();
    }

    @Override
    public int numberSigned() {
        return commodityMapper.numberSigned();
    }

    @Override
    public int numberCancel() {
        return commodityMapper.numberCancel();
    }
}
